import {axiosInstance, blogList} from './Index.vue';

axiosInstance.get('http://127.0.0.1:8080/showblog')
    .then(response => {
        const responseData = response.data;
        if (Array.isArray(responseData.data) && responseData.data.length > 0) {
            blogList.value = responseData.data;
        }
    })
    .catch(error => {
        /* window.location.href = 'http://localhost:8080/login'; */
        console.log(66666666666666660000);
        console.error('请求失败:', error);
    });
